package com.commons.utils;

import java.io.Closeable;

/**
 * 关闭各种链接
 */
public class CloseUtil {

    public static void close(Closeable closeable){
        if(null!=closeable){
            try {
                closeable.close();
            }catch (Exception e){

            }
        }
    }

    public static void close(AutoCloseable autoCloseable){
        if(null!=autoCloseable){
            try {
                autoCloseable.close();
            }catch (Exception e){

            }
        }
    }
}
